home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / windows / games / tricho.exe / TRICHO.DOC < prev    next >
Text File  |  1990-03-16  |  1KB  |  26 lines

  1.  This is a Microsoft Windows program which generates a fractal pattern
  2.  inside a triangle. It demonstrates how a regular pattern can sometimes
  3.  result from an apparently chaotic or random process. I saw this demonstrated
  4.  on the P.B.S television NOVA program entitled "THE STRANGE NEW SCIENCE OF
  5.  CHAOS" shown 1-31-89.
  6.  
  7. The algorithm is roughly...
  8.     1. plot 3 points for the vertices of a triangle.
  9.     2. label the points (1,2), (3,4), (5,6).
  10.     3. plot any random point on screen (oldpoint).
  11.     4. generate a random integer between 1 and 6 inclusive.
  12.        (like a simulated dice throw)
  13.     5. plot (newpoint) half way between (oldpoint) and the vertex with
  14.        the same label as the random integer.
  15.     6. oldpoint = newpoint.
  16.     7. repeat 4, 5, 6 until...?
  17.  
  18. The program should run in any enviornment that WINDOWS can handle. It
  19. looks good on VGA/EGA. I don't know about CGA.
  20.  
  21. Many thanks to Charles Petzold. The program source code is structured
  22. similar to his RANDRECT program in the PROGRAMMING WINDOWS book.
  23.  
  24.       Send comments ect to Marty Belles 72735,661.
  25.       Have fun!
  26.